#pragma once
#include "prop_def.h"
#include "Singleton.h"


class prop_mgr_x
{
public:
    prop_mgr_x();
    ~prop_mgr_x();

    void GetPropMap(prop_map& props);
    bool AddProp(prop_index id, prop_nums nums = 1);
    bool RemoveProp(prop_index id, prop_nums nums = 1);
    bool HasProp(prop_index id, prop_nums nums = 1);
    bool GetPropNums(prop_index id, prop_nums& nums);

private:
    prop_map m_props;
};

typedef Singleton<prop_mgr_x> prop_mgr;
